export default {
  // 网站标题
  title: "vue-ele-plus",
  // 部署的基础路径
  base: "/",
  build: {
    chunkSizeWarningLimit: 1600,
    rollupOptions: {
      output: {
        manualChunks(id) {
          //静态资源分拆打包
          if (id.includes("node_modules")) {
            return id
              .toString()
              .split("node_modules/")[1]
              .split("/")[0]
              .toString();
          }
        },
      },
    },
  },
  // 配置html的head标签
  head: [["meta", { name: "theme-color", content: "#3c8772" }]],
  lastUpdated: true,
  // cleanUrls: "without-subfolders",
  // markdown: {
  //   headers: {
  //     level: [0, 0]
  //   }
  // },
  // 主题配置
  themeConfig: {
    // 头部导航
    nav: [
      {
        text: "首页",
        // 跳转
        link: "/",
      },
      {
        text: "github站点",
        link: "https://www.itspxx.com/",
        target: "_blank",
      },
    ],
    // 侧边导航
    sidebar: {
      "/guild/": [
        {
          text: "介绍",
          items: [{ text: "介绍", link: "/guild/intro/" }],
        },
        {
          text: "快速上手",
          items: [{ text: "快速上手", link: "/guild/quickStart/" }],
        },
        {
          text: "常用组件",
          collapsible: true,
          items: [
            { text: "图标选择器", link: "/guild/chooseIcon/" },
            {
              text: "省市区选择",
              link: "/guild/chooseArea/",
            },
            {
              text: "趋势标记",
              link: "/guild/trend/",
            },
            {
              text: "时间选择",
              link: "/guild/chooseTime/",
            },
            {
              text: "通知菜单",
              link: "/guild/notification/",
            },
            {
              text: "导航菜单",
              link: "/guild/menu/",
            },
            {
              text: "城市选择",
              link: "/guild/chooseCity/",
            },
            {
              text: "进度条",
              link: "/guild/progress/",
            },
            {
              text: "日历",
              link: "/guild/calendar/",
            },
            {
              text: "表单",
              link: "/guild/form/",
            },
            {
              text: "弹出框表单",
              link: "/guild/modalForm/",
            },
            {
              text: "表格",
              link: "/guild/table/",
            },
          ],
        },
      ],
    },
    // 底部导航
    footer: {
      message: "Released under the MIT License.",
      copyright: "Copyright © 2019-present Evan You",
    },
    editLink: {
      pattern: "https://github.com/vuejs/vitepress/edit/main/docs/:path",
      text: "Edit this page on GitHub",
    },
  },
};
